package com.bitcoin.scheduler.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 爬虫处理的批次
 **/
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Table(name = "bcc_batch")
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class BccBatch extends Identity {
    //批次号
    String batchNo;
    //批次类型
    String batchType;
    //批次状态
    String batchState;
    //批次开始时间
    @Column(name = "batch_time_start")
    Date startDate;
    //批次结束时间
    @Column(name = "batch_time_end")
    Date endDate;
}
